//q1.cpp
//This program takes a length in centimeters and convert to cm
//
//Binyamin 7 december 2017
#include<iostream>

using namespace std;

const double CM_TO_INCH = 0.3937;
//1. Prompt the user for a length.
//2. store it to cm.
//3. convert the change to inch
//4. print the change

int main()
{
	double cm, inch; // cm - used to store the value in cm from the user.
			 // inch - used as the conversion.
	cout << "Please enter a length in centimeters: ";
	cin >> cm;
	inch = CM_TO_INCH * cm;
	cout << "The length is " << inch << " in inches" << endl;

	return 0;
}
//output:
//Please enter a length in centimeters: 3
//The length is 1.1811 in inches
